<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ResourceFolderList.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.ResourceFolderList" %>
<asp:GridView ID="gvResourceFolder" runat="server" AutoGenerateColumns="False" Width="60%"> 
    <Columns>
        <asp:TemplateField HeaderText="Name">
            <ItemTemplate>
                <asp:Label ID="lbName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>        
        <asp:TemplateField HeaderText="Description">
            <ItemTemplate>
                <asp:Label ID="lbDescrption" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Description") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        
        <asp:TemplateField HeaderText="Action">
            <ItemTemplate>
                <asp:ImageButton ID="ibEdit" ImageUrl="~/Admin/Images/edit.gif"  runat="server"  CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' OnClick="ibEdit_Click"/>
                <asp:ImageButton ID="ibDelete" ImageUrl="~/Admin/Images/delete.gif" runat="server" OnClientClick="return confirm('Are you sure you want to delete?');"  CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' OnClick="ibDelete_Click"/>
            </ItemTemplate>                           
        </asp:TemplateField>
    </Columns>
</asp:GridView> 